package org.hbhk.aili.job.event;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.dangdang.ddframe.job.executor.ShardingContexts;
import com.dangdang.ddframe.job.lite.api.listener.ElasticJobListener;

public class MyElasticJobListener implements ElasticJobListener {

	private static final Logger LOGGER = LoggerFactory.getLogger(MyElasticJobListener.class);

	@Override
	public void beforeJobExecuted(ShardingContexts shardingContexts) {
		String jobName = shardingContexts.getJobName();
		LOGGER.debug("调度任务开始:" + jobName);

	}

	@Override
	public void afterJobExecuted(ShardingContexts shardingContexts) {
		String jobName = shardingContexts.getJobName();
		LOGGER.debug("任务调度完成:" + jobName);

	}
}